Handler for binding runtimes.
More...
#include <kanzi/core.ui/binding/binding_runtime_handle.hpp>
Handler for binding runtimes.
This handler contains a weak pointer m_binding that does not take an ownership of the binding runtime or prevent the destruction of the binding.
- See also
- BindingHostConceptImpl
- Since
- Kanzi 3.9.7
◆ BindingRuntimeHandle() [1/2]
kanzi::BindingRuntimeHandle::BindingRuntimeHandle |
( |
| ) |
|
|
explicitdefault |
◆ BindingRuntimeHandle() [2/2]
Constructor.
- Parameters
-
binding | The created binding runtime. |
◆ operator->()
Accesses binding runtime functions.
- Returns
- Pointer to binding runtime.
◆ operator bool()
kanzi::BindingRuntimeHandle::operator bool |
( |
| ) |
const |
|
inline |
Returns whether the binding runtime is still valid.
- Returns
- Whether the binding runtime is still valid.
◆ getBinding()
Gets the shared pointer of a runtime binding.
- Returns
- Shared pointer from the weak pointer.
◆ reset()
void kanzi::BindingRuntimeHandle::reset |
( |
| ) |
|
|
inline |
Resets the binding runtime.
◆ use_count()
long kanzi::BindingRuntimeHandle::use_count |
( |
| ) |
const |
|
inline |
- Returns
- Number of shared pointers pointing to binding.
◆ m_binding
Weak reference to the binding runtime.
The documentation for this class was generated from the following file: